//
// Created by Castle on 2025/10/20.
//

#include <iostream>
#include <ostream>

int main() {

    double x {12.5};
    double y {34.6};

    int sum = x + y;
    std::cout << "The sum is: " << sum << std::endl; // 47

    sum = static_cast<int>(x) + static_cast<int>(y);
    std::cout << "The sum is: " << sum << std::endl; // 46

    sum = static_cast<int>(x + y);
    std::cout << "Sum up then cast,result is: " << sum << std::endl; // 47

    return 0;
}
